import config from '@/config'

export function getToken(key = config.token) {
  return localStorage.getItem(key) || ''
}

export function setToken(token, key = config.token) {
  localStorage.setItem(key, token)
}

export function removeToken(key = config.token) {
  localStorage.removeItem(key)
}
